<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Cheetah Software: test_ControlParameters.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cheetah Software
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('db/d74/test___control_parameters_8cpp.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">test_ControlParameters.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;gmock/gmock.h&quot;</code><br />
<code>#include &quot;gtest/gtest.h&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters/ControlParameters.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d9/d53/_robot_parameters_8h_source.html">ControlParameters/RobotParameters.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d2/dc1/_simulator_parameters_8h_source.html">ControlParameters/SimulatorParameters.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../de/dda/_math_utilities_8h_source.html">Math/MathUtilities.h</a>&quot;</code><br />
</div><div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Include dependency graph for test_ControlParameters.cpp:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/df3/test___control_parameters_8cpp__incl.png" border="0" usemap="#test___control_parameters_8cpp" alt=""/></div>
<map name="test___control_parameters_8cpp" id="test___control_parameters_8cpp">
</map>
</div>
</div>
<p><a href="../../db/d74/test___control_parameters_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d1d/class_test_control_parameters.html">TestControlParameters</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dbe/class_test_vector_control_parameters.html">TestVectorControlParameters</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad071c61fdb5068d12eafa985aea5134a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html#ad071c61fdb5068d12eafa985aea5134a">TEST</a> (ControlParams, testSimple)</td></tr>
<tr class="separator:ad071c61fdb5068d12eafa985aea5134a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11ae540e1d4b3ec1a0942df035ddb60f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html#a11ae540e1d4b3ec1a0942df035ddb60f">TEST</a> (ControlParams, testIni)</td></tr>
<tr class="separator:a11ae540e1d4b3ec1a0942df035ddb60f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa02b4ec347a36f8c0a1eecafe9c805ed"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html#aa02b4ec347a36f8c0a1eecafe9c805ed">TEST</a> (ControlParams, testVector)</td></tr>
<tr class="separator:aa02b4ec347a36f8c0a1eecafe9c805ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2bd5d826e749db0d1e2ff8346c01326"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html#aa2bd5d826e749db0d1e2ff8346c01326">TEST</a> (ControlParams, testYaml)</td></tr>
<tr class="separator:aa2bd5d826e749db0d1e2ff8346c01326"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4186b16f2cb20dae4b96ff453f20bdfd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html#a4186b16f2cb20dae4b96ff453f20bdfd">TEST</a> (ControlParams, CheckSimulatorDefaults)</td></tr>
<tr class="separator:a4186b16f2cb20dae4b96ff453f20bdfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fd5feafea507726691e99ebdc1ad049"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html#a6fd5feafea507726691e99ebdc1ad049">TEST</a> (ControlParams, CheckMiniCheetahDefaults)</td></tr>
<tr class="separator:a6fd5feafea507726691e99ebdc1ad049"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95f4d74d7a75fd96a91ac8c4b686d3ee"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html#a95f4d74d7a75fd96a91ac8c4b686d3ee">TEST</a> (ControlParams, CheckCheetah3Defulats)</td></tr>
<tr class="separator:a95f4d74d7a75fd96a91ac8c4b686d3ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a672f709faa6f9fd07e2ff1830454de36"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html#a672f709faa6f9fd07e2ff1830454de36">TEST</a> (ControlParams, CheckTypeRecognition)</td></tr>
<tr class="separator:a672f709faa6f9fd07e2ff1830454de36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a691b752b53b7c9b93d7bf9241292c8bc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html#a691b752b53b7c9b93d7bf9241292c8bc">TEST</a> (ControlParams, DefineFromYaml)</td></tr>
<tr class="separator:a691b752b53b7c9b93d7bf9241292c8bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ad071c61fdb5068d12eafa985aea5134a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype">ControlParams&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">testSimple&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00047">47</a> of file <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html">test_ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00381">ControlParameter::_kind</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00379">ControlParameter::_name</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00377">ControlParameter::_set</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00378">ControlParameter::_value</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00441">ControlParameters::collection</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00049">ControlParameterValuePtr::d</a>, <a class="el" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3afd3e4ece78a7d422280d5ed379482229">DOUBLE</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00048">ControlParameterValuePtr::f</a>, <a class="el" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3ae738c26bf4ce1037fa81b039a915cbf6">FLOAT</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00050">ControlParameterValuePtr::i</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00408">ControlParameters::initializeDouble()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00412">ControlParameters::initializeFloat()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00416">ControlParameters::initializeInteger()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters::isFullyInitialized()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00095">ControlParameterCollection::lookup()</a>, and <a class="el" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3a115dca124dc6423c7a400b8a8a0270cc">S64</a>.</p>
<div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;                                {</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <a class="code" href="../../d9/d1d/class_test_control_parameters.html">TestControlParameters</a> settings;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  EXPECT_FALSE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  EXPECT_THROW(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#aeb42c9876070a4358bff08c26e48f4b7">initializeInteger</a>(<span class="stringliteral">&quot;test_double&quot;</span>, 1),</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;               std::runtime_error);</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  EXPECT_THROW(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ae5f39ed6a80cc0abe90887055acc922f">initializeDouble</a>(<span class="stringliteral">&quot;not-a-real-thing&quot;</span>, 1.2),</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;               std::runtime_error);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ae5f39ed6a80cc0abe90887055acc922f">initializeDouble</a>(<span class="stringliteral">&quot;test_double&quot;</span>, 1.2);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  EXPECT_FALSE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  EXPECT_TRUE(1.2 == *settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_double&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#af4f137ac4770a5453568fa3e30d53eeb">_value</a>.<a class="code" href="../../de/de5/union_control_parameter_value_ptr.html#af8325aa446ee1cedb00974c4cc1e8c36">d</a>);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  EXPECT_TRUE(<a class="code" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3afd3e4ece78a7d422280d5ed379482229">ControlParameterValueKind::DOUBLE</a> ==</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;              settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_double&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#a9bfcef0e53e248af51d60e013609ce8f">_kind</a>);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  EXPECT_TRUE(<span class="stringliteral">&quot;test_double&quot;</span> == settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_double&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#ab01e27ab0e9365bc898c84c1ce21a290">_name</a>);</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  EXPECT_TRUE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_double&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#ada3615e7bce65bb92461a5e7066c4077">_set</a>);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a301ed9db3e1dc917c9130d706f1c7764">initializeFloat</a>(<span class="stringliteral">&quot;test_float&quot;</span>, 1);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  EXPECT_FALSE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  EXPECT_TRUE(1 == *settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_float&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#af4f137ac4770a5453568fa3e30d53eeb">_value</a>.<a class="code" href="../../de/de5/union_control_parameter_value_ptr.html#ad588a631211dbe138f2d1bd2dcd99943">f</a>);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  EXPECT_TRUE(<a class="code" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3ae738c26bf4ce1037fa81b039a915cbf6">ControlParameterValueKind::FLOAT</a> ==</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;              settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_float&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#a9bfcef0e53e248af51d60e013609ce8f">_kind</a>);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  EXPECT_TRUE(<span class="stringliteral">&quot;test_float&quot;</span> == settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_float&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#ab01e27ab0e9365bc898c84c1ce21a290">_name</a>);</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  EXPECT_TRUE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_float&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#ada3615e7bce65bb92461a5e7066c4077">_set</a>);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#aeb42c9876070a4358bff08c26e48f4b7">initializeInteger</a>(<span class="stringliteral">&quot;test_integer&quot;</span>, 8);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  EXPECT_TRUE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  EXPECT_TRUE(8 == *settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_integer&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#af4f137ac4770a5453568fa3e30d53eeb">_value</a>.<a class="code" href="../../de/de5/union_control_parameter_value_ptr.html#a14414d5916d4895fbe12fbc55b6e4e83">i</a>);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  EXPECT_TRUE(<a class="code" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3a115dca124dc6423c7a400b8a8a0270cc">ControlParameterValueKind::S64</a> ==</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;              settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_integer&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#a9bfcef0e53e248af51d60e013609ce8f">_kind</a>);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  EXPECT_TRUE(<span class="stringliteral">&quot;test_integer&quot;</span> ==</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;              settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_integer&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#ab01e27ab0e9365bc898c84c1ce21a290">_name</a>);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  EXPECT_TRUE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">collection</a>.<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a>(<span class="stringliteral">&quot;test_integer&quot;</span>).<a class="code" href="../../da/d98/class_control_parameter.html#ada3615e7bce65bb92461a5e7066c4077">_set</a>);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div><div class="ttc" id="class_control_parameters_html_ab42dff0f07e88bf44c831238dd4ce96f"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#ab42dff0f07e88bf44c831238dd4ce96f">ControlParameters::collection</a></div><div class="ttdeci">ControlParameterCollection collection</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00441">ControlParameters.h:441</a></div></div>
<div class="ttc" id="class_control_parameter_html_a9bfcef0e53e248af51d60e013609ce8f"><div class="ttname"><a href="../../da/d98/class_control_parameter.html#a9bfcef0e53e248af51d60e013609ce8f">ControlParameter::_kind</a></div><div class="ttdeci">ControlParameterValueKind _kind</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00381">ControlParameters.h:381</a></div></div>
<div class="ttc" id="class_test_control_parameters_html"><div class="ttname"><a href="../../d9/d1d/class_test_control_parameters.html">TestControlParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00014">test_ControlParameters.cpp:14</a></div></div>
<div class="ttc" id="class_control_parameter_html_ada3615e7bce65bb92461a5e7066c4077"><div class="ttname"><a href="../../da/d98/class_control_parameter.html#ada3615e7bce65bb92461a5e7066c4077">ControlParameter::_set</a></div><div class="ttdeci">bool _set</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00377">ControlParameters.h:377</a></div></div>
<div class="ttc" id="class_control_parameters_html_a12b144b3d659080b6e0bfd93569b566e"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">ControlParameters::isFullyInitialized</a></div><div class="ttdeci">bool isFullyInitialized()</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters.h:403</a></div></div>
<div class="ttc" id="union_control_parameter_value_ptr_html_ad588a631211dbe138f2d1bd2dcd99943"><div class="ttname"><a href="../../de/de5/union_control_parameter_value_ptr.html#ad588a631211dbe138f2d1bd2dcd99943">ControlParameterValuePtr::f</a></div><div class="ttdeci">float * f</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00048">ControlParameters.h:48</a></div></div>
<div class="ttc" id="class_control_parameter_html_af4f137ac4770a5453568fa3e30d53eeb"><div class="ttname"><a href="../../da/d98/class_control_parameter.html#af4f137ac4770a5453568fa3e30d53eeb">ControlParameter::_value</a></div><div class="ttdeci">ControlParameterValuePtr _value</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00378">ControlParameters.h:378</a></div></div>
<div class="ttc" id="class_control_parameters_html_ae5f39ed6a80cc0abe90887055acc922f"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#ae5f39ed6a80cc0abe90887055acc922f">ControlParameters::initializeDouble</a></div><div class="ttdeci">void initializeDouble(const std::string &amp;name, double d)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00408">ControlParameters.h:408</a></div></div>
<div class="ttc" id="class_control_parameters_html_aeb42c9876070a4358bff08c26e48f4b7"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#aeb42c9876070a4358bff08c26e48f4b7">ControlParameters::initializeInteger</a></div><div class="ttdeci">void initializeInteger(const std::string &amp;name, s64 i)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00416">ControlParameters.h:416</a></div></div>
<div class="ttc" id="class_control_parameter_collection_html_a9e6262aa46992ca879b50d70df030a56"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">ControlParameterCollection::lookup</a></div><div class="ttdeci">ControlParameter &amp; lookup(const std::string &amp;name)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00095">ControlParameters.h:95</a></div></div>
<div class="ttc" id="union_control_parameter_value_ptr_html_a14414d5916d4895fbe12fbc55b6e4e83"><div class="ttname"><a href="../../de/de5/union_control_parameter_value_ptr.html#a14414d5916d4895fbe12fbc55b6e4e83">ControlParameterValuePtr::i</a></div><div class="ttdeci">s64 * i</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00050">ControlParameters.h:50</a></div></div>
<div class="ttc" id="class_control_parameters_html_a301ed9db3e1dc917c9130d706f1c7764"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a301ed9db3e1dc917c9130d706f1c7764">ControlParameters::initializeFloat</a></div><div class="ttdeci">void initializeFloat(const std::string &amp;name, float f)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00412">ControlParameters.h:412</a></div></div>
<div class="ttc" id="_control_parameters_8h_html_a09b572cf97f12b378290dee549d8ecc3a115dca124dc6423c7a400b8a8a0270cc"><div class="ttname"><a href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3a115dca124dc6423c7a400b8a8a0270cc">ControlParameterValueKind::S64</a></div></div>
<div class="ttc" id="_control_parameters_8h_html_a09b572cf97f12b378290dee549d8ecc3afd3e4ece78a7d422280d5ed379482229"><div class="ttname"><a href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3afd3e4ece78a7d422280d5ed379482229">ControlParameterValueKind::DOUBLE</a></div></div>
<div class="ttc" id="union_control_parameter_value_ptr_html_af8325aa446ee1cedb00974c4cc1e8c36"><div class="ttname"><a href="../../de/de5/union_control_parameter_value_ptr.html#af8325aa446ee1cedb00974c4cc1e8c36">ControlParameterValuePtr::d</a></div><div class="ttdeci">double * d</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00049">ControlParameters.h:49</a></div></div>
<div class="ttc" id="_control_parameters_8h_html_a09b572cf97f12b378290dee549d8ecc3ae738c26bf4ce1037fa81b039a915cbf6"><div class="ttname"><a href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3ae738c26bf4ce1037fa81b039a915cbf6">ControlParameterValueKind::FLOAT</a></div></div>
<div class="ttc" id="class_control_parameter_html_ab01e27ab0e9365bc898c84c1ce21a290"><div class="ttname"><a href="../../da/d98/class_control_parameter.html#ab01e27ab0e9365bc898c84c1ce21a290">ControlParameter::_name</a></div><div class="ttdeci">std::string _name</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00379">ControlParameters.h:379</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d74/test___control_parameters_8cpp_ad071c61fdb5068d12eafa985aea5134a_cgraph.png" border="0" usemap="#db/d74/test___control_parameters_8cpp_ad071c61fdb5068d12eafa985aea5134a_cgraph" alt=""/></div>
<map name="db/d74/test___control_parameters_8cpp_ad071c61fdb5068d12eafa985aea5134a_cgraph" id="db/d74/test___control_parameters_8cpp_ad071c61fdb5068d12eafa985aea5134a_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a11ae540e1d4b3ec1a0942df035ddb60f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype">ControlParams&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">testIni&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00084">84</a> of file <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html">test_ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../dc/dd7/test__casadi_8cpp_source.html#l00202">f()</a>, <a class="el" href="../../de/df0/utilities_8h_source.html#l00015">fpEqual()</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00089">ControlParameters::generateUnitializedList()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00408">ControlParameters::initializeDouble()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00412">ControlParameters::initializeFloat()</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00204">ControlParameters::initializeFromIniFile()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00416">ControlParameters::initializeInteger()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters::isFullyInitialized()</a>, <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00022">TestControlParameters::test_double</a>, <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00025">TestControlParameters::test_float</a>, <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00028">TestControlParameters::test_integer</a>, and <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00196">ControlParameters::writeToIniFile()</a>.</p>
<div class="fragment"><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                             {</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="comment">// create and initialize some parameters</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <a class="code" href="../../d9/d1d/class_test_control_parameters.html">TestControlParameters</a> settings;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;  EXPECT_FALSE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ae5f39ed6a80cc0abe90887055acc922f">initializeDouble</a>(<span class="stringliteral">&quot;test_double&quot;</span>, 2e-9);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a301ed9db3e1dc917c9130d706f1c7764">initializeFloat</a>(<span class="stringliteral">&quot;test_float&quot;</span>, 1);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#aeb42c9876070a4358bff08c26e48f4b7">initializeInteger</a>(<span class="stringliteral">&quot;test_integer&quot;</span>, 8);</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  EXPECT_TRUE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  <span class="comment">// write to ini:</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a76eb75236afb53701ca4eb33e18ed418">writeToIniFile</a>(<span class="stringliteral">&quot;control-params-test-file.ini&quot;</span>);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  <span class="comment">// read from ini</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  <a class="code" href="../../d9/d1d/class_test_control_parameters.html">TestControlParameters</a> settingsFromIni;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  EXPECT_FALSE(settingsFromIni.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  settingsFromIni.<a class="code" href="../../d8/d86/class_control_parameters.html#a2b6c5ee9b0578bae6c795d7b93d1d295">initializeFromIniFile</a>(<span class="stringliteral">&quot;control-params-test-file.ini&quot;</span>);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  printf(<span class="stringliteral">&quot;%s\n&quot;</span>, settingsFromIni.<a class="code" href="../../d8/d86/class_control_parameters.html#a6fc860c65c6484562dfc922cb5806410">generateUnitializedList</a>().c_str());</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  EXPECT_TRUE(settingsFromIni.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  EXPECT_TRUE(</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;      <a class="code" href="../../de/df0/utilities_8h.html#a16ea9aab4737c2622bc370d6a8613d63">fpEqual</a>(settings.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#afa6ab412184c4f43104a555f9e97fd10">test_double</a>, settingsFromIni.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#afa6ab412184c4f43104a555f9e97fd10">test_double</a>, 1e-10));</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  EXPECT_TRUE(<a class="code" href="../../de/df0/utilities_8h.html#a16ea9aab4737c2622bc370d6a8613d63">fpEqual</a>(settings.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#ae79342d908c8b447b97b7dbf0d297dd0">test_float</a>, settingsFromIni.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#ae79342d908c8b447b97b7dbf0d297dd0">test_float</a>, 1e-5<a class="code" href="../../dc/dd7/test__casadi_8cpp.html#ae20d7fba59865a21504b65cdb44cbfe5">f</a>));</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  EXPECT_TRUE(settings.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#aceb1c3f3d0cffcba3c0cbab7c4696241">test_integer</a> == settingsFromIni.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#aceb1c3f3d0cffcba3c0cbab7c4696241">test_integer</a>);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;}</div><div class="ttc" id="utilities_8h_html_a16ea9aab4737c2622bc370d6a8613d63"><div class="ttname"><a href="../../de/df0/utilities_8h.html#a16ea9aab4737c2622bc370d6a8613d63">fpEqual</a></div><div class="ttdeci">bool fpEqual(T a, T b, T tol)</div><div class="ttdef"><b>Definition:</b> <a href="../../de/df0/utilities_8h_source.html#l00015">utilities.h:15</a></div></div>
<div class="ttc" id="class_test_control_parameters_html"><div class="ttname"><a href="../../d9/d1d/class_test_control_parameters.html">TestControlParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00014">test_ControlParameters.cpp:14</a></div></div>
<div class="ttc" id="class_control_parameters_html_a12b144b3d659080b6e0bfd93569b566e"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">ControlParameters::isFullyInitialized</a></div><div class="ttdeci">bool isFullyInitialized()</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters.h:403</a></div></div>
<div class="ttc" id="class_control_parameters_html_ae5f39ed6a80cc0abe90887055acc922f"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#ae5f39ed6a80cc0abe90887055acc922f">ControlParameters::initializeDouble</a></div><div class="ttdeci">void initializeDouble(const std::string &amp;name, double d)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00408">ControlParameters.h:408</a></div></div>
<div class="ttc" id="class_test_control_parameters_html_ae79342d908c8b447b97b7dbf0d297dd0"><div class="ttname"><a href="../../d9/d1d/class_test_control_parameters.html#ae79342d908c8b447b97b7dbf0d297dd0">TestControlParameters::test_float</a></div><div class="ttdeci">float test_float</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00025">test_ControlParameters.cpp:25</a></div></div>
<div class="ttc" id="class_control_parameters_html_aeb42c9876070a4358bff08c26e48f4b7"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#aeb42c9876070a4358bff08c26e48f4b7">ControlParameters::initializeInteger</a></div><div class="ttdeci">void initializeInteger(const std::string &amp;name, s64 i)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00416">ControlParameters.h:416</a></div></div>
<div class="ttc" id="class_control_parameters_html_a76eb75236afb53701ca4eb33e18ed418"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a76eb75236afb53701ca4eb33e18ed418">ControlParameters::writeToIniFile</a></div><div class="ttdeci">void writeToIniFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00196">ControlParameters.cpp:196</a></div></div>
<div class="ttc" id="class_test_control_parameters_html_aceb1c3f3d0cffcba3c0cbab7c4696241"><div class="ttname"><a href="../../d9/d1d/class_test_control_parameters.html#aceb1c3f3d0cffcba3c0cbab7c4696241">TestControlParameters::test_integer</a></div><div class="ttdeci">s64 test_integer</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00028">test_ControlParameters.cpp:28</a></div></div>
<div class="ttc" id="class_control_parameters_html_a301ed9db3e1dc917c9130d706f1c7764"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a301ed9db3e1dc917c9130d706f1c7764">ControlParameters::initializeFloat</a></div><div class="ttdeci">void initializeFloat(const std::string &amp;name, float f)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00412">ControlParameters.h:412</a></div></div>
<div class="ttc" id="class_control_parameters_html_a2b6c5ee9b0578bae6c795d7b93d1d295"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a2b6c5ee9b0578bae6c795d7b93d1d295">ControlParameters::initializeFromIniFile</a></div><div class="ttdeci">void initializeFromIniFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00204">ControlParameters.cpp:204</a></div></div>
<div class="ttc" id="class_test_control_parameters_html_afa6ab412184c4f43104a555f9e97fd10"><div class="ttname"><a href="../../d9/d1d/class_test_control_parameters.html#afa6ab412184c4f43104a555f9e97fd10">TestControlParameters::test_double</a></div><div class="ttdeci">double test_double</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00022">test_ControlParameters.cpp:22</a></div></div>
<div class="ttc" id="class_control_parameters_html_a6fc860c65c6484562dfc922cb5806410"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a6fc860c65c6484562dfc922cb5806410">ControlParameters::generateUnitializedList</a></div><div class="ttdeci">std::string generateUnitializedList()</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00089">ControlParameters.cpp:89</a></div></div>
<div class="ttc" id="test__casadi_8cpp_html_ae20d7fba59865a21504b65cdb44cbfe5"><div class="ttname"><a href="../../dc/dd7/test__casadi_8cpp.html#ae20d7fba59865a21504b65cdb44cbfe5">f</a></div><div class="ttdeci">MX f(const MX &amp;x, const MX &amp;u)</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/dd7/test__casadi_8cpp_source.html#l00202">test_casadi.cpp:202</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d74/test___control_parameters_8cpp_a11ae540e1d4b3ec1a0942df035ddb60f_cgraph.png" border="0" usemap="#db/d74/test___control_parameters_8cpp_a11ae540e1d4b3ec1a0942df035ddb60f_cgraph" alt=""/></div>
<map name="db/d74/test___control_parameters_8cpp_a11ae540e1d4b3ec1a0942df035ddb60f_cgraph" id="db/d74/test___control_parameters_8cpp_a11ae540e1d4b3ec1a0942df035ddb60f_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa02b4ec347a36f8c0a1eecafe9c805ed"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype">ControlParams&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">testVector&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00109">109</a> of file <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html">test_ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../de/dda/_math_utilities_8h_source.html#l00023">almostEqual()</a>, <a class="el" href="../../dc/dd7/test__casadi_8cpp_source.html#l00202">f()</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters::initializeFromYamlFile()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00424">ControlParameters::initializeVec3d()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00420">ControlParameters::initializeVec3f()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters::isFullyInitialized()</a>, <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00040">TestVectorControlParameters::test_double</a>, <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00043">TestVectorControlParameters::test_float</a>, and <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00200">ControlParameters::writeToYamlFile()</a>.</p>
<div class="fragment"><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                                {</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <a class="code" href="../../d6/dbe/class_test_vector_control_parameters.html">TestVectorControlParameters</a> settings;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  EXPECT_FALSE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  <a class="code" href="../../d9/d8e/cpp_types_8h.html#a6f07728c866b15ff0676a9b2ebfd2ba6">Vec3&lt;float&gt;</a> v3f(1, 2.2, 54.45);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <a class="code" href="../../d9/d8e/cpp_types_8h.html#a6f07728c866b15ff0676a9b2ebfd2ba6">Vec3&lt;double&gt;</a> v3d(.01, 1e-3, -2.23e-7);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a0a7e46d226067a4f1e00248efb55db1b">initializeVec3f</a>(<span class="stringliteral">&quot;test_float&quot;</span>, v3f);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#af90106f2450e3521eb6ff2e567506d16">initializeVec3d</a>(<span class="stringliteral">&quot;test_double&quot;</span>, v3d);</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  EXPECT_TRUE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a3eabcba112adc206c8a11d0cbfc75619">writeToYamlFile</a>(<span class="stringliteral">&quot;test-yaml.yaml&quot;</span>);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  <a class="code" href="../../d6/dbe/class_test_vector_control_parameters.html">TestVectorControlParameters</a> settingsFromFile;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  EXPECT_FALSE(settingsFromFile.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  settingsFromFile.<a class="code" href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">initializeFromYamlFile</a>(<span class="stringliteral">&quot;test-yaml.yaml&quot;</span>);</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  EXPECT_TRUE(settingsFromFile.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  EXPECT_TRUE(<a class="code" href="../../de/dda/_math_utilities_8h.html#aa06ec79f1e3170ea41b58ffbf35b9fb6">almostEqual</a>(v3f, settingsFromFile.<a class="code" href="../../d6/dbe/class_test_vector_control_parameters.html#a5336aa7abb6f0f817f1106d67d3f104e">test_float</a>, 1e-6<a class="code" href="../../dc/dd7/test__casadi_8cpp.html#ae20d7fba59865a21504b65cdb44cbfe5">f</a>));</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  EXPECT_TRUE(<a class="code" href="../../de/dda/_math_utilities_8h.html#aa06ec79f1e3170ea41b58ffbf35b9fb6">almostEqual</a>(v3d, settingsFromFile.<a class="code" href="../../d6/dbe/class_test_vector_control_parameters.html#a7fe3eda155d66c8baa2379db73e2990b">test_double</a>, 1e-10));</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;}</div><div class="ttc" id="class_test_vector_control_parameters_html_a5336aa7abb6f0f817f1106d67d3f104e"><div class="ttname"><a href="../../d6/dbe/class_test_vector_control_parameters.html#a5336aa7abb6f0f817f1106d67d3f104e">TestVectorControlParameters::test_float</a></div><div class="ttdeci">Vec3&lt; float &gt; test_float</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00043">test_ControlParameters.cpp:43</a></div></div>
<div class="ttc" id="class_control_parameters_html_a12b144b3d659080b6e0bfd93569b566e"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">ControlParameters::isFullyInitialized</a></div><div class="ttdeci">bool isFullyInitialized()</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters.h:403</a></div></div>
<div class="ttc" id="cpp_types_8h_html_a6f07728c866b15ff0676a9b2ebfd2ba6"><div class="ttname"><a href="../../d9/d8e/cpp_types_8h.html#a6f07728c866b15ff0676a9b2ebfd2ba6">Vec3</a></div><div class="ttdeci">typename Eigen::Matrix&lt; T, 3, 1 &gt; Vec3</div><div class="ttdef"><b>Definition:</b> <a href="../../d9/d8e/cpp_types_8h_source.html#l00026">cppTypes.h:26</a></div></div>
<div class="ttc" id="class_control_parameters_html_a3eabcba112adc206c8a11d0cbfc75619"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a3eabcba112adc206c8a11d0cbfc75619">ControlParameters::writeToYamlFile</a></div><div class="ttdeci">void writeToYamlFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00200">ControlParameters.cpp:200</a></div></div>
<div class="ttc" id="class_control_parameters_html_af90106f2450e3521eb6ff2e567506d16"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#af90106f2450e3521eb6ff2e567506d16">ControlParameters::initializeVec3d</a></div><div class="ttdeci">void initializeVec3d(const std::string &amp;name, Vec3&lt; double &gt; &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00424">ControlParameters.h:424</a></div></div>
<div class="ttc" id="_math_utilities_8h_html_aa06ec79f1e3170ea41b58ffbf35b9fb6"><div class="ttname"><a href="../../de/dda/_math_utilities_8h.html#aa06ec79f1e3170ea41b58ffbf35b9fb6">almostEqual</a></div><div class="ttdeci">bool almostEqual(const Eigen::MatrixBase&lt; T &gt; &amp;a, const Eigen::MatrixBase&lt; T &gt; &amp;b, T2 tol)</div><div class="ttdef"><b>Definition:</b> <a href="../../de/dda/_math_utilities_8h_source.html#l00023">MathUtilities.h:23</a></div></div>
<div class="ttc" id="class_test_vector_control_parameters_html"><div class="ttname"><a href="../../d6/dbe/class_test_vector_control_parameters.html">TestVectorControlParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00032">test_ControlParameters.cpp:32</a></div></div>
<div class="ttc" id="class_test_vector_control_parameters_html_a7fe3eda155d66c8baa2379db73e2990b"><div class="ttname"><a href="../../d6/dbe/class_test_vector_control_parameters.html#a7fe3eda155d66c8baa2379db73e2990b">TestVectorControlParameters::test_double</a></div><div class="ttdeci">Vec3&lt; double &gt; test_double</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00040">test_ControlParameters.cpp:40</a></div></div>
<div class="ttc" id="class_control_parameters_html_a0a7e46d226067a4f1e00248efb55db1b"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a0a7e46d226067a4f1e00248efb55db1b">ControlParameters::initializeVec3f</a></div><div class="ttdeci">void initializeVec3f(const std::string &amp;name, Vec3&lt; float &gt; &amp;v)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00420">ControlParameters.h:420</a></div></div>
<div class="ttc" id="class_control_parameters_html_a18eb23794d712e6c56120e644883e4e0"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">ControlParameters::initializeFromYamlFile</a></div><div class="ttdeci">void initializeFromYamlFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters.cpp:365</a></div></div>
<div class="ttc" id="test__casadi_8cpp_html_ae20d7fba59865a21504b65cdb44cbfe5"><div class="ttname"><a href="../../dc/dd7/test__casadi_8cpp.html#ae20d7fba59865a21504b65cdb44cbfe5">f</a></div><div class="ttdeci">MX f(const MX &amp;x, const MX &amp;u)</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/dd7/test__casadi_8cpp_source.html#l00202">test_casadi.cpp:202</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d74/test___control_parameters_8cpp_aa02b4ec347a36f8c0a1eecafe9c805ed_cgraph.png" border="0" usemap="#db/d74/test___control_parameters_8cpp_aa02b4ec347a36f8c0a1eecafe9c805ed_cgraph" alt=""/></div>
<map name="db/d74/test___control_parameters_8cpp_aa02b4ec347a36f8c0a1eecafe9c805ed_cgraph" id="db/d74/test___control_parameters_8cpp_aa02b4ec347a36f8c0a1eecafe9c805ed_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa2bd5d826e749db0d1e2ff8346c01326"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype">ControlParams&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">testYaml&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00129">129</a> of file <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html">test_ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../dc/dd7/test__casadi_8cpp_source.html#l00202">f()</a>, <a class="el" href="../../de/df0/utilities_8h_source.html#l00015">fpEqual()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00408">ControlParameters::initializeDouble()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00412">ControlParameters::initializeFloat()</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters::initializeFromYamlFile()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00416">ControlParameters::initializeInteger()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters::isFullyInitialized()</a>, <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00022">TestControlParameters::test_double</a>, <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00025">TestControlParameters::test_float</a>, <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00028">TestControlParameters::test_integer</a>, and <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00200">ControlParameters::writeToYamlFile()</a>.</p>
<div class="fragment"><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                              {</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;  <span class="comment">// create and initialize some parameters</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  <a class="code" href="../../d9/d1d/class_test_control_parameters.html">TestControlParameters</a> settings;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  EXPECT_FALSE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#ae5f39ed6a80cc0abe90887055acc922f">initializeDouble</a>(<span class="stringliteral">&quot;test_double&quot;</span>, 2e-9);</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a301ed9db3e1dc917c9130d706f1c7764">initializeFloat</a>(<span class="stringliteral">&quot;test_float&quot;</span>, 1);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#aeb42c9876070a4358bff08c26e48f4b7">initializeInteger</a>(<span class="stringliteral">&quot;test_integer&quot;</span>, 8);</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  EXPECT_TRUE(settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  <span class="comment">// write to yaml</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  settings.<a class="code" href="../../d8/d86/class_control_parameters.html#a3eabcba112adc206c8a11d0cbfc75619">writeToYamlFile</a>(<span class="stringliteral">&quot;control-params-test-file.yaml&quot;</span>);</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;  <span class="comment">// read from yaml</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  <a class="code" href="../../d9/d1d/class_test_control_parameters.html">TestControlParameters</a> settingsFromYaml;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;  EXPECT_FALSE(settingsFromYaml.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;  settingsFromYaml.<a class="code" href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">initializeFromYamlFile</a>(<span class="stringliteral">&quot;control-params-test-file.yaml&quot;</span>);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  EXPECT_TRUE(settingsFromYaml.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;  EXPECT_TRUE(</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;      <a class="code" href="../../de/df0/utilities_8h.html#a16ea9aab4737c2622bc370d6a8613d63">fpEqual</a>(settings.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#afa6ab412184c4f43104a555f9e97fd10">test_double</a>, settingsFromYaml.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#afa6ab412184c4f43104a555f9e97fd10">test_double</a>, 1e-10));</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  EXPECT_TRUE(<a class="code" href="../../de/df0/utilities_8h.html#a16ea9aab4737c2622bc370d6a8613d63">fpEqual</a>(settings.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#ae79342d908c8b447b97b7dbf0d297dd0">test_float</a>, settingsFromYaml.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#ae79342d908c8b447b97b7dbf0d297dd0">test_float</a>, 1e-5<a class="code" href="../../dc/dd7/test__casadi_8cpp.html#ae20d7fba59865a21504b65cdb44cbfe5">f</a>));</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  EXPECT_TRUE(settings.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#aceb1c3f3d0cffcba3c0cbab7c4696241">test_integer</a> == settingsFromYaml.<a class="code" href="../../d9/d1d/class_test_control_parameters.html#aceb1c3f3d0cffcba3c0cbab7c4696241">test_integer</a>);</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;}</div><div class="ttc" id="utilities_8h_html_a16ea9aab4737c2622bc370d6a8613d63"><div class="ttname"><a href="../../de/df0/utilities_8h.html#a16ea9aab4737c2622bc370d6a8613d63">fpEqual</a></div><div class="ttdeci">bool fpEqual(T a, T b, T tol)</div><div class="ttdef"><b>Definition:</b> <a href="../../de/df0/utilities_8h_source.html#l00015">utilities.h:15</a></div></div>
<div class="ttc" id="class_test_control_parameters_html"><div class="ttname"><a href="../../d9/d1d/class_test_control_parameters.html">TestControlParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00014">test_ControlParameters.cpp:14</a></div></div>
<div class="ttc" id="class_control_parameters_html_a12b144b3d659080b6e0bfd93569b566e"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">ControlParameters::isFullyInitialized</a></div><div class="ttdeci">bool isFullyInitialized()</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters.h:403</a></div></div>
<div class="ttc" id="class_control_parameters_html_ae5f39ed6a80cc0abe90887055acc922f"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#ae5f39ed6a80cc0abe90887055acc922f">ControlParameters::initializeDouble</a></div><div class="ttdeci">void initializeDouble(const std::string &amp;name, double d)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00408">ControlParameters.h:408</a></div></div>
<div class="ttc" id="class_test_control_parameters_html_ae79342d908c8b447b97b7dbf0d297dd0"><div class="ttname"><a href="../../d9/d1d/class_test_control_parameters.html#ae79342d908c8b447b97b7dbf0d297dd0">TestControlParameters::test_float</a></div><div class="ttdeci">float test_float</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00025">test_ControlParameters.cpp:25</a></div></div>
<div class="ttc" id="class_control_parameters_html_a3eabcba112adc206c8a11d0cbfc75619"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a3eabcba112adc206c8a11d0cbfc75619">ControlParameters::writeToYamlFile</a></div><div class="ttdeci">void writeToYamlFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00200">ControlParameters.cpp:200</a></div></div>
<div class="ttc" id="class_control_parameters_html_aeb42c9876070a4358bff08c26e48f4b7"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#aeb42c9876070a4358bff08c26e48f4b7">ControlParameters::initializeInteger</a></div><div class="ttdeci">void initializeInteger(const std::string &amp;name, s64 i)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00416">ControlParameters.h:416</a></div></div>
<div class="ttc" id="class_test_control_parameters_html_aceb1c3f3d0cffcba3c0cbab7c4696241"><div class="ttname"><a href="../../d9/d1d/class_test_control_parameters.html#aceb1c3f3d0cffcba3c0cbab7c4696241">TestControlParameters::test_integer</a></div><div class="ttdeci">s64 test_integer</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00028">test_ControlParameters.cpp:28</a></div></div>
<div class="ttc" id="class_control_parameters_html_a301ed9db3e1dc917c9130d706f1c7764"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a301ed9db3e1dc917c9130d706f1c7764">ControlParameters::initializeFloat</a></div><div class="ttdeci">void initializeFloat(const std::string &amp;name, float f)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00412">ControlParameters.h:412</a></div></div>
<div class="ttc" id="class_control_parameters_html_a18eb23794d712e6c56120e644883e4e0"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">ControlParameters::initializeFromYamlFile</a></div><div class="ttdeci">void initializeFromYamlFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters.cpp:365</a></div></div>
<div class="ttc" id="class_test_control_parameters_html_afa6ab412184c4f43104a555f9e97fd10"><div class="ttname"><a href="../../d9/d1d/class_test_control_parameters.html#afa6ab412184c4f43104a555f9e97fd10">TestControlParameters::test_double</a></div><div class="ttdeci">double test_double</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d74/test___control_parameters_8cpp_source.html#l00022">test_ControlParameters.cpp:22</a></div></div>
<div class="ttc" id="test__casadi_8cpp_html_ae20d7fba59865a21504b65cdb44cbfe5"><div class="ttname"><a href="../../dc/dd7/test__casadi_8cpp.html#ae20d7fba59865a21504b65cdb44cbfe5">f</a></div><div class="ttdeci">MX f(const MX &amp;x, const MX &amp;u)</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/dd7/test__casadi_8cpp_source.html#l00202">test_casadi.cpp:202</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d74/test___control_parameters_8cpp_aa2bd5d826e749db0d1e2ff8346c01326_cgraph.png" border="0" usemap="#db/d74/test___control_parameters_8cpp_aa2bd5d826e749db0d1e2ff8346c01326_cgraph" alt=""/></div>
<map name="db/d74/test___control_parameters_8cpp_aa2bd5d826e749db0d1e2ff8346c01326_cgraph" id="db/d74/test___control_parameters_8cpp_aa2bd5d826e749db0d1e2ff8346c01326_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4186b16f2cb20dae4b96ff453f20bdfd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype">ControlParams&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CheckSimulatorDefaults&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00155">155</a> of file <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html">test_ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00089">ControlParameters::generateUnitializedList()</a>, <a class="el" href="../../de/da5/utilities_8cpp_source.html#l00030">getConfigDirectoryPath()</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters::initializeFromYamlFile()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters::isFullyInitialized()</a>, and <a class="el" href="../../d2/dc1/_simulator_parameters_8h_source.html#l00014">SIMULATOR_DEFAULT_PARAMETERS</a>.</p>
<div class="fragment"><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                                            {</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;  <a class="code" href="../../da/dcf/class_simulator_control_parameters.html">SimulatorControlParameters</a> simParams;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;  simParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">initializeFromYamlFile</a>(<a class="code" href="../../de/df0/utilities_8h.html#afe1bbec53e0ac370224c4aa5c3433b0e">getConfigDirectoryPath</a>() +</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                                   <a class="code" href="../../d2/dc1/_simulator_parameters_8h.html#aa00dee4f2e7a2c2386fa6a383347eaa4">SIMULATOR_DEFAULT_PARAMETERS</a>);</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;  <span class="keywordflow">if</span> (!simParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>()) {</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    printf(<span class="stringliteral">&quot;Missing parameters:\n%s\n&quot;</span>,</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;           simParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a6fc860c65c6484562dfc922cb5806410">generateUnitializedList</a>().c_str());</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;  }</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;  EXPECT_TRUE(simParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;}</div><div class="ttc" id="class_control_parameters_html_a12b144b3d659080b6e0bfd93569b566e"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">ControlParameters::isFullyInitialized</a></div><div class="ttdeci">bool isFullyInitialized()</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters.h:403</a></div></div>
<div class="ttc" id="_simulator_parameters_8h_html_aa00dee4f2e7a2c2386fa6a383347eaa4"><div class="ttname"><a href="../../d2/dc1/_simulator_parameters_8h.html#aa00dee4f2e7a2c2386fa6a383347eaa4">SIMULATOR_DEFAULT_PARAMETERS</a></div><div class="ttdeci">#define SIMULATOR_DEFAULT_PARAMETERS</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/dc1/_simulator_parameters_8h_source.html#l00014">SimulatorParameters.h:14</a></div></div>
<div class="ttc" id="utilities_8h_html_afe1bbec53e0ac370224c4aa5c3433b0e"><div class="ttname"><a href="../../de/df0/utilities_8h.html#afe1bbec53e0ac370224c4aa5c3433b0e">getConfigDirectoryPath</a></div><div class="ttdeci">std::string getConfigDirectoryPath()</div><div class="ttdef"><b>Definition:</b> <a href="../../de/da5/utilities_8cpp_source.html#l00030">utilities.cpp:30</a></div></div>
<div class="ttc" id="class_simulator_control_parameters_html"><div class="ttname"><a href="../../da/dcf/class_simulator_control_parameters.html">SimulatorControlParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d2/dc1/_simulator_parameters_8h_source.html#l00018">SimulatorParameters.h:18</a></div></div>
<div class="ttc" id="class_control_parameters_html_a18eb23794d712e6c56120e644883e4e0"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">ControlParameters::initializeFromYamlFile</a></div><div class="ttdeci">void initializeFromYamlFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters.cpp:365</a></div></div>
<div class="ttc" id="class_control_parameters_html_a6fc860c65c6484562dfc922cb5806410"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a6fc860c65c6484562dfc922cb5806410">ControlParameters::generateUnitializedList</a></div><div class="ttdeci">std::string generateUnitializedList()</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00089">ControlParameters.cpp:89</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d74/test___control_parameters_8cpp_a4186b16f2cb20dae4b96ff453f20bdfd_cgraph.png" border="0" usemap="#db/d74/test___control_parameters_8cpp_a4186b16f2cb20dae4b96ff453f20bdfd_cgraph" alt=""/></div>
<map name="db/d74/test___control_parameters_8cpp_a4186b16f2cb20dae4b96ff453f20bdfd_cgraph" id="db/d74/test___control_parameters_8cpp_a4186b16f2cb20dae4b96ff453f20bdfd_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6fd5feafea507726691e99ebdc1ad049"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype">ControlParams&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CheckMiniCheetahDefaults&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00168">168</a> of file <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html">test_ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00089">ControlParameters::generateUnitializedList()</a>, <a class="el" href="../../de/da5/utilities_8cpp_source.html#l00030">getConfigDirectoryPath()</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters::initializeFromYamlFile()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters::isFullyInitialized()</a>, and <a class="el" href="../../d2/dc1/_simulator_parameters_8h_source.html#l00015">MINI_CHEETAH_DEFAULT_PARAMETERS</a>.</p>
<div class="fragment"><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;                                              {</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;  <a class="code" href="../../d0/d73/class_robot_control_parameters.html">RobotControlParameters</a> robotParams;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;  robotParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">initializeFromYamlFile</a>(<a class="code" href="../../de/df0/utilities_8h.html#afe1bbec53e0ac370224c4aa5c3433b0e">getConfigDirectoryPath</a>() +</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                                     <a class="code" href="../../d2/dc1/_simulator_parameters_8h.html#a7e57f99279ad4c4bef21220b9f09e768">MINI_CHEETAH_DEFAULT_PARAMETERS</a>);</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;  <span class="keywordflow">if</span> (!robotParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>()) {</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    printf(<span class="stringliteral">&quot;Missing parameters:\n%s\n&quot;</span>,</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;           robotParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a6fc860c65c6484562dfc922cb5806410">generateUnitializedList</a>().c_str());</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;  }</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;  EXPECT_TRUE(robotParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;}</div><div class="ttc" id="_simulator_parameters_8h_html_a7e57f99279ad4c4bef21220b9f09e768"><div class="ttname"><a href="../../d2/dc1/_simulator_parameters_8h.html#a7e57f99279ad4c4bef21220b9f09e768">MINI_CHEETAH_DEFAULT_PARAMETERS</a></div><div class="ttdeci">#define MINI_CHEETAH_DEFAULT_PARAMETERS</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/dc1/_simulator_parameters_8h_source.html#l00015">SimulatorParameters.h:15</a></div></div>
<div class="ttc" id="class_control_parameters_html_a12b144b3d659080b6e0bfd93569b566e"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">ControlParameters::isFullyInitialized</a></div><div class="ttdeci">bool isFullyInitialized()</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters.h:403</a></div></div>
<div class="ttc" id="class_robot_control_parameters_html"><div class="ttname"><a href="../../d0/d73/class_robot_control_parameters.html">RobotControlParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d9/d53/_robot_parameters_8h_source.html#l00012">RobotParameters.h:12</a></div></div>
<div class="ttc" id="utilities_8h_html_afe1bbec53e0ac370224c4aa5c3433b0e"><div class="ttname"><a href="../../de/df0/utilities_8h.html#afe1bbec53e0ac370224c4aa5c3433b0e">getConfigDirectoryPath</a></div><div class="ttdeci">std::string getConfigDirectoryPath()</div><div class="ttdef"><b>Definition:</b> <a href="../../de/da5/utilities_8cpp_source.html#l00030">utilities.cpp:30</a></div></div>
<div class="ttc" id="class_control_parameters_html_a18eb23794d712e6c56120e644883e4e0"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">ControlParameters::initializeFromYamlFile</a></div><div class="ttdeci">void initializeFromYamlFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters.cpp:365</a></div></div>
<div class="ttc" id="class_control_parameters_html_a6fc860c65c6484562dfc922cb5806410"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a6fc860c65c6484562dfc922cb5806410">ControlParameters::generateUnitializedList</a></div><div class="ttdeci">std::string generateUnitializedList()</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00089">ControlParameters.cpp:89</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-6-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d74/test___control_parameters_8cpp_a6fd5feafea507726691e99ebdc1ad049_cgraph.png" border="0" usemap="#db/d74/test___control_parameters_8cpp_a6fd5feafea507726691e99ebdc1ad049_cgraph" alt=""/></div>
<map name="db/d74/test___control_parameters_8cpp_a6fd5feafea507726691e99ebdc1ad049_cgraph" id="db/d74/test___control_parameters_8cpp_a6fd5feafea507726691e99ebdc1ad049_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a95f4d74d7a75fd96a91ac8c4b686d3ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype">ControlParams&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CheckCheetah3Defulats&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00181">181</a> of file <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html">test_ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d2/dc1/_simulator_parameters_8h_source.html#l00016">CHEETAH_3_DEFAULT_PARAMETERS</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00089">ControlParameters::generateUnitializedList()</a>, <a class="el" href="../../de/da5/utilities_8cpp_source.html#l00030">getConfigDirectoryPath()</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters::initializeFromYamlFile()</a>, and <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters::isFullyInitialized()</a>.</p>
<div class="fragment"><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                                           {</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  <a class="code" href="../../d0/d73/class_robot_control_parameters.html">RobotControlParameters</a> robotParams;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;  robotParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">initializeFromYamlFile</a>(<a class="code" href="../../de/df0/utilities_8h.html#afe1bbec53e0ac370224c4aa5c3433b0e">getConfigDirectoryPath</a>() +</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                                     <a class="code" href="../../d2/dc1/_simulator_parameters_8h.html#a5eaf6a55cc62b298e00b5dd5f02a1203">CHEETAH_3_DEFAULT_PARAMETERS</a>);</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;  <span class="keywordflow">if</span> (!robotParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>()) {</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    printf(<span class="stringliteral">&quot;Missing parameters:\n%s\n&quot;</span>,</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;           robotParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a6fc860c65c6484562dfc922cb5806410">generateUnitializedList</a>().c_str());</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;  }</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;  EXPECT_TRUE(robotParams.<a class="code" href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">isFullyInitialized</a>());</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;}</div><div class="ttc" id="class_control_parameters_html_a12b144b3d659080b6e0bfd93569b566e"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a12b144b3d659080b6e0bfd93569b566e">ControlParameters::isFullyInitialized</a></div><div class="ttdeci">bool isFullyInitialized()</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00403">ControlParameters.h:403</a></div></div>
<div class="ttc" id="class_robot_control_parameters_html"><div class="ttname"><a href="../../d0/d73/class_robot_control_parameters.html">RobotControlParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d9/d53/_robot_parameters_8h_source.html#l00012">RobotParameters.h:12</a></div></div>
<div class="ttc" id="utilities_8h_html_afe1bbec53e0ac370224c4aa5c3433b0e"><div class="ttname"><a href="../../de/df0/utilities_8h.html#afe1bbec53e0ac370224c4aa5c3433b0e">getConfigDirectoryPath</a></div><div class="ttdeci">std::string getConfigDirectoryPath()</div><div class="ttdef"><b>Definition:</b> <a href="../../de/da5/utilities_8cpp_source.html#l00030">utilities.cpp:30</a></div></div>
<div class="ttc" id="_simulator_parameters_8h_html_a5eaf6a55cc62b298e00b5dd5f02a1203"><div class="ttname"><a href="../../d2/dc1/_simulator_parameters_8h.html#a5eaf6a55cc62b298e00b5dd5f02a1203">CHEETAH_3_DEFAULT_PARAMETERS</a></div><div class="ttdeci">#define CHEETAH_3_DEFAULT_PARAMETERS</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/dc1/_simulator_parameters_8h_source.html#l00016">SimulatorParameters.h:16</a></div></div>
<div class="ttc" id="class_control_parameters_html_a18eb23794d712e6c56120e644883e4e0"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a18eb23794d712e6c56120e644883e4e0">ControlParameters::initializeFromYamlFile</a></div><div class="ttdeci">void initializeFromYamlFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00365">ControlParameters.cpp:365</a></div></div>
<div class="ttc" id="class_control_parameters_html_a6fc860c65c6484562dfc922cb5806410"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html#a6fc860c65c6484562dfc922cb5806410">ControlParameters::generateUnitializedList</a></div><div class="ttdeci">std::string generateUnitializedList()</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00089">ControlParameters.cpp:89</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-7-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d74/test___control_parameters_8cpp_a95f4d74d7a75fd96a91ac8c4b686d3ee_cgraph.png" border="0" usemap="#db/d74/test___control_parameters_8cpp_a95f4d74d7a75fd96a91ac8c4b686d3ee_cgraph" alt=""/></div>
<map name="db/d74/test___control_parameters_8cpp_a95f4d74d7a75fd96a91ac8c4b686d3ee_cgraph" id="db/d74/test___control_parameters_8cpp_a95f4d74d7a75fd96a91ac8c4b686d3ee_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a672f709faa6f9fd07e2ff1830454de36"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype">ControlParams&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CheckTypeRecognition&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00193">193</a> of file <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html">test_ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3afd3e4ece78a7d422280d5ed379482229">DOUBLE</a>, <a class="el" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3ae738c26bf4ce1037fa81b039a915cbf6">FLOAT</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00257">getControlParameterValueKindFromString()</a>, <a class="el" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3a115dca124dc6423c7a400b8a8a0270cc">S64</a>, <a class="el" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3acda86ec015dc718f45093f44299896b7">VEC3_DOUBLE</a>, and <a class="el" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3a67e64e66f81168ac8d94ce0c2467eb95">VEC3_FLOAT</a>.</p>
<div class="fragment"><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                                          {</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;  EXPECT_TRUE(<a class="code" href="../../d2/d01/_control_parameters_8h.html#a49f66b4d586d9f1e4eb1d789abb5098f">getControlParameterValueKindFromString</a>(<span class="stringliteral">&quot;3.f&quot;</span>) == <a class="code" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3ae738c26bf4ce1037fa81b039a915cbf6">ControlParameterValueKind::FLOAT</a>);</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;  EXPECT_TRUE(<a class="code" href="../../d2/d01/_control_parameters_8h.html#a49f66b4d586d9f1e4eb1d789abb5098f">getControlParameterValueKindFromString</a>(<span class="stringliteral">&quot;3.&quot;</span>) == <a class="code" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3afd3e4ece78a7d422280d5ed379482229">ControlParameterValueKind::DOUBLE</a>);</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;  EXPECT_TRUE(<a class="code" href="../../d2/d01/_control_parameters_8h.html#a49f66b4d586d9f1e4eb1d789abb5098f">getControlParameterValueKindFromString</a>(<span class="stringliteral">&quot;3&quot;</span>) == <a class="code" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3a115dca124dc6423c7a400b8a8a0270cc">ControlParameterValueKind::S64</a>);</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;  EXPECT_TRUE(<a class="code" href="../../d2/d01/_control_parameters_8h.html#a49f66b4d586d9f1e4eb1d789abb5098f">getControlParameterValueKindFromString</a>(<span class="stringliteral">&quot;[1,2,3]&quot;</span>) == <a class="code" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3acda86ec015dc718f45093f44299896b7">ControlParameterValueKind::VEC3_DOUBLE</a>);</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;  EXPECT_TRUE(<a class="code" href="../../d2/d01/_control_parameters_8h.html#a49f66b4d586d9f1e4eb1d789abb5098f">getControlParameterValueKindFromString</a>(<span class="stringliteral">&quot;[1.f,2.f,3.f]&quot;</span>) == <a class="code" href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3a67e64e66f81168ac8d94ce0c2467eb95">ControlParameterValueKind::VEC3_FLOAT</a>);</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;}</div><div class="ttc" id="_control_parameters_8h_html_a09b572cf97f12b378290dee549d8ecc3acda86ec015dc718f45093f44299896b7"><div class="ttname"><a href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3acda86ec015dc718f45093f44299896b7">ControlParameterValueKind::VEC3_DOUBLE</a></div></div>
<div class="ttc" id="_control_parameters_8h_html_a09b572cf97f12b378290dee549d8ecc3a67e64e66f81168ac8d94ce0c2467eb95"><div class="ttname"><a href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3a67e64e66f81168ac8d94ce0c2467eb95">ControlParameterValueKind::VEC3_FLOAT</a></div></div>
<div class="ttc" id="_control_parameters_8h_html_a09b572cf97f12b378290dee549d8ecc3a115dca124dc6423c7a400b8a8a0270cc"><div class="ttname"><a href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3a115dca124dc6423c7a400b8a8a0270cc">ControlParameterValueKind::S64</a></div></div>
<div class="ttc" id="_control_parameters_8h_html_a49f66b4d586d9f1e4eb1d789abb5098f"><div class="ttname"><a href="../../d2/d01/_control_parameters_8h.html#a49f66b4d586d9f1e4eb1d789abb5098f">getControlParameterValueKindFromString</a></div><div class="ttdeci">ControlParameterValueKind getControlParameterValueKindFromString(const std::string &amp;str)</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00257">ControlParameters.cpp:257</a></div></div>
<div class="ttc" id="_control_parameters_8h_html_a09b572cf97f12b378290dee549d8ecc3afd3e4ece78a7d422280d5ed379482229"><div class="ttname"><a href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3afd3e4ece78a7d422280d5ed379482229">ControlParameterValueKind::DOUBLE</a></div></div>
<div class="ttc" id="_control_parameters_8h_html_a09b572cf97f12b378290dee549d8ecc3ae738c26bf4ce1037fa81b039a915cbf6"><div class="ttname"><a href="../../d2/d01/_control_parameters_8h.html#a09b572cf97f12b378290dee549d8ecc3ae738c26bf4ce1037fa81b039a915cbf6">ControlParameterValueKind::FLOAT</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-8-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d74/test___control_parameters_8cpp_a672f709faa6f9fd07e2ff1830454de36_cgraph.png" border="0" usemap="#db/d74/test___control_parameters_8cpp_a672f709faa6f9fd07e2ff1830454de36_cgraph" alt=""/></div>
<map name="db/d74/test___control_parameters_8cpp_a672f709faa6f9fd07e2ff1830454de36_cgraph" id="db/d74/test___control_parameters_8cpp_a672f709faa6f9fd07e2ff1830454de36_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a691b752b53b7c9b93d7bf9241292c8bc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype">ControlParams&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DefineFromYaml&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html#l00201">201</a> of file <a class="el" href="../../db/d74/test___control_parameters_8cpp_source.html">test_ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d2/dc1/_simulator_parameters_8h_source.html#l00016">CHEETAH_3_DEFAULT_PARAMETERS</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00441">ControlParameters::collection</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00280">ControlParameters::defineAndInitializeFromYamlFile()</a>, <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00082">ControlParameterCollection::deleteAll()</a>, <a class="el" href="../../de/da5/utilities_8cpp_source.html#l00030">getConfigDirectoryPath()</a>, and <a class="el" href="../../d2/dc1/_simulator_parameters_8h_source.html#l00015">MINI_CHEETAH_DEFAULT_PARAMETERS</a>.</p>
<div class="fragment"><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;                                    {</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;  <a class="code" href="../../d8/d86/class_control_parameters.html">ControlParameters</a> params(<span class="stringliteral">&quot;robot-parameters&quot;</span>);</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;  params.defineAndInitializeFromYamlFile(<a class="code" href="../../de/df0/utilities_8h.html#afe1bbec53e0ac370224c4aa5c3433b0e">getConfigDirectoryPath</a>() +</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<a class="code" href="../../d2/dc1/_simulator_parameters_8h.html#a5eaf6a55cc62b298e00b5dd5f02a1203">CHEETAH_3_DEFAULT_PARAMETERS</a>);</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;  params.collection.deleteAll();</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;  params.defineAndInitializeFromYamlFile(<a class="code" href="../../de/df0/utilities_8h.html#afe1bbec53e0ac370224c4aa5c3433b0e">getConfigDirectoryPath</a>() + <a class="code" href="../../d2/dc1/_simulator_parameters_8h.html#a7e57f99279ad4c4bef21220b9f09e768">MINI_CHEETAH_DEFAULT_PARAMETERS</a>);</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;  <span class="comment">//printf(&quot;Result: \n %s\n&quot;, params.collection.printToIniString().c_str());</span></div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;}<div class="ttc" id="class_control_parameters_html"><div class="ttname"><a href="../../d8/d86/class_control_parameters.html">ControlParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00391">ControlParameters.h:391</a></div></div>
<div class="ttc" id="_simulator_parameters_8h_html_a7e57f99279ad4c4bef21220b9f09e768"><div class="ttname"><a href="../../d2/dc1/_simulator_parameters_8h.html#a7e57f99279ad4c4bef21220b9f09e768">MINI_CHEETAH_DEFAULT_PARAMETERS</a></div><div class="ttdeci">#define MINI_CHEETAH_DEFAULT_PARAMETERS</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/dc1/_simulator_parameters_8h_source.html#l00015">SimulatorParameters.h:15</a></div></div>
<div class="ttc" id="utilities_8h_html_afe1bbec53e0ac370224c4aa5c3433b0e"><div class="ttname"><a href="../../de/df0/utilities_8h.html#afe1bbec53e0ac370224c4aa5c3433b0e">getConfigDirectoryPath</a></div><div class="ttdeci">std::string getConfigDirectoryPath()</div><div class="ttdef"><b>Definition:</b> <a href="../../de/da5/utilities_8cpp_source.html#l00030">utilities.cpp:30</a></div></div>
<div class="ttc" id="_simulator_parameters_8h_html_a5eaf6a55cc62b298e00b5dd5f02a1203"><div class="ttname"><a href="../../d2/dc1/_simulator_parameters_8h.html#a5eaf6a55cc62b298e00b5dd5f02a1203">CHEETAH_3_DEFAULT_PARAMETERS</a></div><div class="ttdeci">#define CHEETAH_3_DEFAULT_PARAMETERS</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/dc1/_simulator_parameters_8h_source.html#l00016">SimulatorParameters.h:16</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-9" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-9-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-9-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-9-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d74/test___control_parameters_8cpp_a691b752b53b7c9b93d7bf9241292c8bc_cgraph.png" border="0" usemap="#db/d74/test___control_parameters_8cpp_a691b752b53b7c9b93d7bf9241292c8bc_cgraph" alt=""/></div>
<map name="db/d74/test___control_parameters_8cpp_a691b752b53b7c9b93d7bf9241292c8bc_cgraph" id="db/d74/test___control_parameters_8cpp_a691b752b53b7c9b93d7bf9241292c8bc_cgraph">
</map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_43e0a1f539e00dcfa1a6bc4d4fee4fc2.html">home</a></li><li class="navelem"><a class="el" href="../../dir_61bfb0b3cdda81b1b0355ba34eb3b1eb.html">dhkim</a></li><li class="navelem"><a class="el" href="../../dir_adee5b101e079090017bb4e91c628ead.html">Public_Repository</a></li><li class="navelem"><a class="el" href="../../dir_7fc07a7b97001e7b1d18e11da761e2de.html">Cheetah-Software</a></li><li class="navelem"><a class="el" href="../../dir_860379c26524a894b3cf97b5b1ba5bdb.html">common</a></li><li class="navelem"><a class="el" href="../../dir_bcd721272d4e8dced7bf80a08d191b42.html">test</a></li><li class="navelem"><a class="el" href="../../db/d74/test___control_parameters_8cpp.html">test_ControlParameters.cpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
